package com.zb.jnlxc.model;

import com.ZLHW.base.HTable.HIntTable;
import com.ZLHW.base.table.TableDeclare;
import javax.persistence.*;
import java.util.Date;

/**
 * Created by zhengbo.zb on 2014/8/25.
 */
@Entity
@Table(name="JNLXC_ProductDetail")
@TableDeclare(comment = "生产记录", tableName = "ProductDetail")
public class ProductDetail extends HIntTable {
    @ManyToOne
    private LiaoKuang liaoKuang; //当前所在的料框
    @ManyToOne
    private Product product; //挤压记录
    @ManyToOne
    private Mould mould;//制造所用的模具
    @ManyToOne
    private PaichanOrderDetail paichanOrderDetail; //订单明细

    private Byte currentStep;//当前步骤

    private Integer compTotalMeter; //总米数（米）
    private Integer compQuantity; //完成数量
    private Integer compWeight; //完成重量（千克）

    public LiaoKuang getLiaoKuang() {
        return liaoKuang;
    }

    public void setLiaoKuang(LiaoKuang liaoKuang) {
        this.liaoKuang = liaoKuang;
    }

    public Mould getMould() {
        return mould;
    }

    public void setMould(Mould mould) {
        this.mould = mould;
    }

    public PaichanOrderDetail getPaichanOrderDetail() {
        return paichanOrderDetail;
    }

    public void setPaichanOrderDetail(PaichanOrderDetail paichanOrderDetail) {
        this.paichanOrderDetail = paichanOrderDetail;
    }

    public Integer getCompTotalMeter() {
        return compTotalMeter;
    }

    public void setCompTotalMeter(Integer compTotalMeter) {
        this.compTotalMeter = compTotalMeter;
    }

    public Integer getCompQuantity() {
        return compQuantity;
    }

    public void setCompQuantity(Integer compQuantity) {
        this.compQuantity = compQuantity;
    }

    public Integer getCompWeight() {
        return compWeight;
    }

    public void setCompWeight(Integer compWeight) {
        this.compWeight = compWeight;
    }

    public Byte getCurrentStep() {
        return currentStep;
    }

    public void setCurrentStep(Byte currentStep) {
        this.currentStep = currentStep;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }


}
